﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 <style>
      html, body,#map-canvas {
        height: 100%;
        margin: 0px;
        padding: 0px
      }
 </style>
    <link href="LibreriasScript/bootstrap-3.1.1-dist/css/bootstrap-theme.min.css" rel="stylesheet" />
    <link href="LibreriasScript/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" />
    <script src="LibreriasScript/JQuery/jquery-1.11.0.min.js"></script>
    <script src="LibreriasScript/bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>    
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true"></script>
    <script src="LibreriasScript/MapsApi.js"></script>
    <title>JusTime</title>
    <script src="LibreriasScript/FuncionesRutas.js"></script>
</head>
<body onload="CargarElementosRutas()">
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="Home.html" class="navbar-brand" style="width:150px; height:65px"><img src="Recursos/JusTimeHome.png" height="auto" width=100%" /></a>
            </div>
            <div class="collapse navbar-collapse">
                <br />
                <ul class="nav navbar-nav">                    
                    <li><a data-toggle="modal" data-target="#Informacion"><span class="glyphicon glyphicon-comment">   </span>   Informacion de rutas</a></li>
                    <li><a data-toggle="modal" data-target="#Agregar"><span class="glyphicon glyphicon-pencil">   </span>   Agregar</a></li>  
                    <li><a data-toggle="modal" data-target="#Eliminar" href="#"><span class="glyphicon glyphicon-remove">   </span>   Eliminar</a></li>   
                    <li><div id="oculto" style='display:none;'><br /><button id="botonOculta" type="button" class="btn btn-link" >Guardar</button><br /></div></li>  
                    <li><div id="oculto4" style='display:none;'><br /><button id="Button1" type="button" class="btn btn-link">Deshacer</button><br /></div></li>                                     
                    <li><div id="oculto2" style='display:none;'><br /><button id="deshacer" type="button" class="btn btn-link">Restablecer</button><br /></div></li>        
                    <li><div id="oculto3" style='display:none;'><br /><button id="cancelar" type="button" class="btn btn-link">Cancelar</button><br /></div></li>                               
                </ul>
            </div><!--/.nav-collapse --> 
        </div>
    </div>
    <div id="map-canvas"></div>
    <!-- Modal -->
    <div class="modal fade bs-example-modal-sm" id="Informacion" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">Rutas</h4>
                </div>
                <div class="modal-body">
                    <div class="panel panel-info">
                        <div class="panel-heading">Informacion de rutas</div>
                            <div class="panel-body">
                                <div align="center">
                                    Elija la ruta
                                        <div class="btn-group">
                                            <button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown">
                                                 Rutas <span class="caret"></span>
                                            </button>
                                            <ul id="tRutaInfo" class="dropdown-menu">
                                            </ul>
                                        </div><br/><br/>
                                    <div class="input-group">
                                        <span class="input-group-addon">Descripcion</span>
                                        <input id="ttDescripcion" type="text" class="form-control" placeholder="" readonly>
                                    </div><br/>
                                    <div class="input-group">
                                        <span class="input-group-addon">Distancia (Km)</span>
                                        <input id="ttDistancia" type="text" class="form-control" placeholder="" readonly>
                                    </div><br/>
                                    <div class="input-group">
                                        <span class="input-group-addon">Numero de buses</span>
                                        <input id="ttNumeroBuses" type="text" class="form-control" placeholder="" readonly>
                                    </div><br/>
                                    <div class="input-group">
                                        <span class="input-group-addon">Tiempo de recorrido (Min.)</span>
                                        <input id="ttTiempoRecorrido" type="text" class="form-control" placeholder="" readonly>
                                    </div><br/>
                                </div>
                            </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade bs-example-modal-sm" id="Eliminar" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="H1">Eliminar rutas</h4>
                </div>
                <div class="modal-body">
                    <div class="panel panel-info">
                        <div class="panel-heading">Eliminar</div>
                            <div class="panel-body">
                                <div align="center">
                                    Elija la ruta a eliminar
                                        <div class="btn-group">
                                            <button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown">
                                                 Rutas <span class="caret"></span>
                                            </button>
                                            <ul id="tRutaEli" class="dropdown-menu">                                                
                                            </ul>
                                        </div><br/><br/>                               
                                </div>
                            </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade bs-example-modal-sm" id="Agregar" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="H2">Agregar ruta</h4>
                </div>
                <div class="modal-body">
                    <div class="panel panel-info">
                        <div class="panel-heading">Informacion de la ruta</div>
                        <div class="panel-body">
                            <div class="input-group">
                                <span class="input-group-addon">Nombre</span>
                                <input  id="tNomRuta" type="text" class="form-control" placeholder="">
                            </div><br/>
                            <div class="input-group">
                                <span class="input-group-addon">Descripcion</span>
                                <input  id="tDescripcion" type="text" class="form-control" placeholder="">
                            </div><br/>
                            <div class="input-group">
                                <span class="input-group-addon">Distancia (Km)</span>
                                <input id="tDistancia" type="text" class="form-control" placeholder="" onkeypress="ValidaSoloNumeros()" value="0">
                            </div><br/>
                            <div class="input-group">
                                <span class="input-group-addon">Tiempo de recorrido (Min.)</span>
                                <input id="tTiempoRecorrido" type="text" class="form-control" placeholder="" onkeypress="ValidaSoloNumeros()" value="0">
                            </div><br/>
                            <button id="vrutas" class="btn btn-default" data-dismiss="modal" onclick="LimpiarMapa()">Dibujar ruta</button>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
